
import request from '@/utils/request'

// 查询列表
export const listINFO = (query:any) => {
  return request({
    url: '/system/INFO/list',
    method: 'get',
    params: query
  })
}

export const getParentInfo = (query:any) => {
  return request({
    url: '/interface/api/machineKpiReportList',
    method: 'get',
    params: query
  })
}

type Obj = Record<string, any>

const cellStyle = ({ colDef, data, value }:Obj) => {
  if(value && data.eqpId !== 'BY MBB' && data.eqpId !== 'BY 叠瓦'){
    return {
      color: 'blue',
      fontWeight: 'bold',
      textDecoration: 'underline'
    }
  }
}

export const firstColumn = [
  {
    headerName: '综合效率(OEE)',
    children: [
      { headerName: "OEE实绩(%)", field: "oeeResult", minWidth: 90, flex: 1, cellStyle },
      { headerName: "OEE目标(%)", field: "oeeTar", minWidth: 90, flex: 1 },
      { headerName: "OEE实绩差异", field: "oeeResulDiff", minWidth: 100, flex: 1 },
      { headerName: "时间稼动率(%)", field: "timeUti", minWidth: 100, flex: 1, cellStyle },
      { headerName: "性能稼动率(%)", field: "performanceUti", minWidth: 100, flex: 1 }
    ]
  },
  {
    headerName: '标准节拍(ST)',
    children: [
      { headerName: "ST目标(秒/片)", field: "stTar", minWidth: 100, flex: 1, cellStyle },
      { headerName: "平均节拍(秒/片)", field: "avgSt", minWidth: 110, flex: 1 },
      { headerName: "样本节拍(秒/片)", field: "sampleSt", minWidth: 110, flex: 1 },
      { headerName: "样本差异(秒/片)", field: "sampleDiff", minWidth: 110, flex: 1 }
    ]
  },

  {
    headerName: '产能预测(CAPA)',
    children: [
      { headerName: "产能目标(万片/31天)", field: "capaTarCell", minWidth: 135, flex: 1 },
      { headerName: "实际产能(万片/31天)", field: "capaReasultCell", minWidth: 135, flex: 1 },
      { headerName: "达成率(%,片)", field: "capaRateCell", minWidth: 100, flex: 1 },
      { headerName: "产能目标(万块/31天)", field: "capaTarPv", minWidth: 135, flex: 1 },
      { headerName: "实际产能(万块/31天)", field: "capaReasultPv", minWidth: 135, flex: 1 },
      { headerName: "达成率(%,块)", field: "capaRatePv", minWidth: 100, flex: 1 }
    ]
  },

  {
    headerName: '生产量',
    children: [
      { headerName: "UPH目标(片/时)", field: "uphTarCell", minWidth: 120, flex: 1 },
      { headerName: "UPH实际(片/时)", field: "uphReasultCell", minWidth: 120, flex: 1 },
      { headerName: "UPH差异(片/时)", field: "uphDiffCell", minWidth:120, flex: 1 },
      { headerName: "生产目标(万片/天)", field: "uphTarDay", minWidth: 130, flex: 1 },
      { headerName: "生产实绩(万片/天)", field: "uphReasultDay", minWidth: 130, flex: 1 },
      { headerName: "生产差异(万片/天)", field: "uphDiffDay", minWidth: 130, flex: 1 }
    ]
  },

  {
    headerName: 'Trace统计',
    children: [
      { headerName: "Trace总量", field: "traceTtlCell", minWidth: 80, flex: 1 },
      { headerName: "量产品", field: "tracePpCell", minWidth: 80, flex: 1 },
      { headerName: "实验品", field: "traceEngCell", minWidth: 80, flex: 1 },
      { headerName: "其他品", field: "traceOhterCell", minWidth: 80, flex: 1 }
    ]
  },

  {
    headerName: '品质指标',
    children: [
      {
        headerName: "不良品",
        children: [
          { headerName: "良率目标(%)", field: "okRateTar", minWidth: 100, flex: 1 },
          { headerName: "良率实绩(%)", field: "okRateReasult", minWidth: 100, flex: 1 },
          { headerName: "良率差异", field: "okRateDiff", minWidth: 80, flex: 1 },
          { headerName: "不良数(片)", field: "ngCountCell", minWidth: 100, flex: 1 }
        ]
      }
    ]
  }
]

export const firstColumnNullColor = [
  {
    headerName: '综合效率(OEE)',
    children: [
      { headerName: "OEE实绩(%)", field: "oeeResult", minWidth: 90, flex: 1 },
      { headerName: "OEE目标(%)", field: "oeeTar", minWidth: 90, flex: 1 },
      { headerName: "OEE实绩差异", field: "oeeResulDiff", minWidth: 100, flex: 1 },
      { headerName: "时间稼动率(%)", field: "timeUti", minWidth: 100, flex: 1, cellStyle },
      { headerName: "性能稼动率(%)", field: "performanceUti", minWidth: 100, flex: 1 }
    ]
  },
  {
    headerName: '标准节拍(ST)',
    children: [
      { headerName: "ST目标(秒/片)", field: "stTar", minWidth: 100, flex: 1 },
      { headerName: "平均节拍(秒/片)", field: "avgSt", minWidth: 110, flex: 1 },
      { headerName: "样本节拍(秒/片)", field: "sampleSt", minWidth: 110, flex: 1 },
      { headerName: "样本差异(秒/片)", field: "sampleDiff", minWidth: 110, flex: 1 }
    ]
  },

  {
    headerName: '产能预测(CAPA)',
    children: [
      { headerName: "产能目标(万片/31天)", field: "capaTarCell", minWidth: 135, flex: 1 },
      { headerName: "实际产能(万片/31天)", field: "capaReasultCell", minWidth: 135, flex: 1 },
      { headerName: "达成率(%,片)", field: "capaRateCell", minWidth: 100, flex: 1 },
      { headerName: "产能目标(万块/31天)", field: "capaTarPv", minWidth: 135, flex: 1 },
      { headerName: "实际产能(万块/31天)", field: "capaReasultPv", minWidth: 135, flex: 1 },
      { headerName: "达成率(%,块)", field: "capaRatePv", minWidth: 100, flex: 1 }
    ]
  },

  {
    headerName: '生产量',
    children: [
      { headerName: "UPH目标(片/时)", field: "uphTarCell", minWidth: 120, flex: 1 },
      { headerName: "UPH实际(片/时)", field: "uphReasultCell", minWidth: 120, flex: 1 },
      { headerName: "UPH差异(片/时)", field: "uphDiffCell", minWidth:120, flex: 1 },
      { headerName: "生产目标(万片/天)", field: "uphTarDay", minWidth: 130, flex: 1 },
      { headerName: "生产实绩(万片/天)", field: "uphReasultDay", minWidth: 130, flex: 1 },
      { headerName: "生产差异(万片/天)", field: "uphDiffDay", minWidth: 130, flex: 1 }
    ]
  },

  {
    headerName: 'Trace统计',
    children: [
      { headerName: "Trace总量", field: "traceTtlCell", minWidth: 80, flex: 1 },
      { headerName: "量产品", field: "tracePpCell", minWidth: 80, flex: 1 },
      { headerName: "实验品", field: "traceEngCell", minWidth: 80, flex: 1 },
      { headerName: "其他品", field: "traceOhterCell", minWidth: 80, flex: 1 }
    ]
  },

  {
    headerName: '品质指标',
    children: [
      {
        headerName: "不良品",
        children: [
          { headerName: "良率目标(%)", field: "okRateTar", minWidth: 100, flex: 1 },
          { headerName: "良率实绩(%)", field: "okRateReasult", minWidth: 100, flex: 1 },
          { headerName: "良率差异", field: "okRateDiff", minWidth: 80, flex: 1 },
          { headerName: "不良数(片)", field: "ngCountCell", minWidth: 100, flex: 1 }
        ]
      }
    ]
  }
]

export const firstColumnNullColorAny = [
  {
    headerName: '综合效率(OEE)',
    children: [
      { headerName: "OEE实绩(%)", field: "oeeResult", minWidth: 90, flex: 1 },
      { headerName: "OEE目标(%)", field: "oeeTar", minWidth: 90, flex: 1 },
      { headerName: "OEE实绩差异", field: "oeeResulDiff", minWidth: 100, flex: 1 },
      { headerName: "时间稼动率(%)", field: "timeUti", minWidth: 100, flex: 1 },
      { headerName: "性能稼动率(%)", field: "performanceUti", minWidth: 100, flex: 1 }
    ]
  },
  {
    headerName: '标准节拍(ST)',
    children: [
      { headerName: "ST目标(秒/片)", field: "stTar", minWidth: 100, flex: 1 },
      { headerName: "平均节拍(秒/片)", field: "avgSt", minWidth: 110, flex: 1 },
      { headerName: "样本节拍(秒/片)", field: "sampleSt", minWidth: 110, flex: 1 },
      { headerName: "样本差异(秒/片)", field: "sampleDiff", minWidth: 110, flex: 1 }
    ]
  },

  {
    headerName: '产能预测(CAPA)',
    children: [
      { headerName: "产能目标(万片/31天)", field: "capaTarCell", minWidth: 135, flex: 1 },
      { headerName: "实际产能(万片/31天)", field: "capaReasultCell", minWidth: 135, flex: 1 },
      { headerName: "达成率(%,片)", field: "capaRateCell", minWidth: 100, flex: 1 },
      { headerName: "产能目标(万块/31天)", field: "capaTarPv", minWidth: 135, flex: 1 },
      { headerName: "实际产能(万块/31天)", field: "capaReasultPv", minWidth: 135, flex: 1 },
      { headerName: "达成率(%,块)", field: "capaRatePv", minWidth: 100, flex: 1 }
    ]
  },

  {
    headerName: '生产量',
    children: [
      { headerName: "UPH目标(片/时)", field: "uphTarCell", minWidth: 120, flex: 1 },
      { headerName: "UPH实际(片/时)", field: "uphReasultCell", minWidth: 120, flex: 1 },
      { headerName: "UPH差异(片/时)", field: "uphDiffCell", minWidth:120, flex: 1 },
      { headerName: "生产目标(万片/天)", field: "uphTarDay", minWidth: 130, flex: 1 },
      { headerName: "生产实绩(万片/天)", field: "uphReasultDay", minWidth: 130, flex: 1 },
      { headerName: "生产差异(万片/天)", field: "uphDiffDay", minWidth: 130, flex: 1 }
    ]
  },

  {
    headerName: 'Trace统计',
    children: [
      { headerName: "Trace总量", field: "traceTtlCell", minWidth: 80, flex: 1 },
      { headerName: "量产品", field: "tracePpCell", minWidth: 80, flex: 1 },
      { headerName: "实验品", field: "traceEngCell", minWidth: 80, flex: 1 },
      { headerName: "其他品", field: "traceOhterCell", minWidth: 80, flex: 1 }
    ]
  },

  {
    headerName: '品质指标',
    children: [
      {
        headerName: "不良品",
        children: [
          { headerName: "良率目标(%)", field: "okRateTar", minWidth: 100, flex: 1 },
          { headerName: "良率实绩(%)", field: "okRateReasult", minWidth: 100, flex: 1 },
          { headerName: "良率差异", field: "okRateDiff", minWidth: 80, flex: 1 },
          { headerName: "不良数(片)", field: "ngCountCell", minWidth: 100, flex: 1 }
        ]
      }
    ]
  }
]

export const secondColumn = [
  {
    headerName: '时间稼动损失率(%)',
    headerClass: 'custom-rate',
    children: [
      { headerName: "总损失率", field: "ttlLossRate", minWidth: 80, flex: 1, headerClass: 'custom-rate' },
      { headerName: "待机_IDLE(%)",
        children: [
          { headerName: "总IDLE率", field: "ttlIdleRate", minWidth: 80, flex: 1, headerClass: 'custom-common' },
          { headerName: "待机率(%)_1100/1200",
            children: [
              { headerName: "待料率", field: "idleWaitRate", minWidth: 80, flex: 1 },
              { headerName: "堵料率", field: "idleBlockRate", minWidth: 80, flex: 1 }
            ]
          }
        ] },
      { headerName: "总停机率", field: "ttlStopRate", minWidth: 80, flex: 1, headerClass: 'custom-rate' },
      { headerName: "设备被动停机_DOWN(%)",
        children: [
          { headerName: "总DOWN机率", field: "ttlDownRate", minWidth: 100, flex: 1, headerClass: 'custom-common' },
          { headerName: "突发故障率(%)_2000/2001/2002/3000/4100/4200",
            children: [
              { headerName: "设备故障率", field: "eqpDownRate", minWidth: 80, flex: 1 },
              { headerName: "Interlock率", field: "interlockRate", minWidth: 100, flex: 1 },
              { headerName: "原材料故障率", field: "rawMaterialRate", minWidth: 100, flex: 1 },
              { headerName: "辅材料故障率", field: "subMaterialRate", minWidth: 100, flex: 1 }
            ]
          },
          { headerName: "设备故障率(%)_2000/2001/2002",
            children: [
              { headerName: "微故障率_60秒", field: "eqp60sRate", minWidth: 100, flex: 1 },
              { headerName: "小故障率_10分", field: "eqp10mRate", minWidth: 100, flex: 1 },
              { headerName: "中故障率_1时", field: "eqp1hRate", minWidth: 100, flex: 1 },
              { headerName: "大故障率_4时", field: "eqp4hRate", minWidth: 100, flex: 1 },
              { headerName: "特大故障率_4时+", field: "eqp4hsRate", minWidth: 115, flex: 1 }
            ] }
        ]
      },
      { headerName: "设备主动停机_PM(%)",
        children: [
          { headerName: "总PM率", field: "ttlPmRate", minWidth: 80, flex: 1, headerClass: 'custom-common' },
          { headerName: "生产保养率(%)_6112/6111/5100",
            children: [
              { headerName: "总生产保养率", field: "ttlPmManRate", minWidth: 100, flex: 1 },
              { headerName: "应急报警率", field: "pmAlarmRate", minWidth: 80, flex: 1 },
              { headerName: "生产5S率", field: "pm5sRate", minWidth: 80, flex: 1 },
              { headerName: "一级保养率", field: "pmAmRate", minWidth: 80, flex: 1 }
            ]
          },
          { headerName: "设备保养率(%)__5200/6100/6200",
            children: [
              { headerName: "总设备保养率", field: "ttlPmEqpRate", minWidth: 100, flex: 1 },
              { headerName: "定期PM率", field: "schPmRate", minWidth: 80, flex: 1 },
              { headerName: "设备非定期率", field: "unschEqpRate", minWidth: 100, flex: 1 },
              { headerName: "品质非定期率", field: "unschQualityRate", minWidth: 100, flex: 1 }
            ] },
          { headerName: "实验借机率", field: "pmEngRate", minWidth: 80, flex: 1 },
          { headerName: "改造改善率", field: "pmCmRate", minWidth: 80, flex: 1 },
          { headerName: "设备变更率(%)__9100/9200",
            children: [
              { headerName: "总变更率", field: "ttlPmChRate", minWidth: 80, flex: 1 },
              { headerName: "辅材变更率", field: "pmMaterialRate", minWidth: 80, flex: 1 },
              { headerName: "版型变更率", field: "pmProductRate", minWidth: 80, flex: 1 }
            ] },
          { headerName: "异常PM率", field: "pmErrorRate", minWidth: 80, flex: 1 }
        ]
      },
      { headerName: "设备OFF率", field: "offRate", minWidth: 80, flex: 1, headerClass: 'custom-common' }
    ]
  }
]

export const thirdColumn = [
  {
    headerName: '时间稼动损失时(分)',
    headerClass: 'custom-mins',
    children: [
      { headerName: "总损失时间", field: "ttlLossMins", minWidth: 80, flex: 1, headerClass: 'custom-mins' },
      { headerName: "待机_IDLE(分)",
        children: [
          { headerName: "总IDLE时间", field: "ttlIdleMins", minWidth: 90, flex: 1, headerClass: 'custom-common' },
          { headerName: "待机时(分)_1100/1200",
            children: [
              { headerName: "待料时间", field: "idleWaitMins", minWidth: 80, flex: 1 },
              { headerName: "堵料时间", field: "idleBlockMins", minWidth: 80, flex: 1 }
            ]
          }
        ] },
      { headerName: "总停机时间", field: "ttlStopMins", minWidth: 80, flex: 1, headerClass: 'custom-mins' },
      { headerName: "设备被动停机_DOWN(分)",
        children: [
          { headerName: "总DOWN机时间", field: "ttlDownMins", minWidth: 110, flex: 1, headerClass: 'custom-common' },
          { headerName: "突发故障时(分)_2000/2001/2002/3000/4100/4200",
            children: [
              { headerName: "设备故障时间", field: "eqpDownMins", minWidth: 100, flex: 1 },
              { headerName: "Interlock时间", field: "interlockMins", minWidth: 110, flex: 1 },
              { headerName: "原材料故障时间", field: "rawMaterialMins", minWidth: 110, flex: 1 },
              { headerName: "辅材料故障时间", field: "subMaterialMins", minWidth: 110, flex: 1 }
            ]
          },
          { headerName: "设备故障时(分)_2000/2001/2002",
            children: [
              { headerName: "微故障时间_60秒", field: "eqp60sMins", minWidth: 120, flex: 1 },
              { headerName: "小故障时间_10分", field: "eqp10mMins", minWidth: 120, flex: 1 },
              { headerName: "中故障时间_1时", field: "eqp1hMins", minWidth: 120, flex: 1 },
              { headerName: "大故障时间_4时", field: "eqp4hMins", minWidth: 120, flex: 1 },
              { headerName: "特大故障时间_4时+", field: "eqp4hsMins", minWidth: 130, flex: 1 }
            ] }
        ]
      },
      { headerName: "设备主动停机_PM(分)",
        children: [
          { headerName: "总PM时间", field: "ttlPmMins", minWidth: 80, flex: 1, headerClass: 'custom-common' },
          { headerName: "生产保养时(分)_6112/6111/5100",
            children: [
              { headerName: "总生产保养时间", field: "ttlPmManMins", minWidth: 110, flex: 1 },
              { headerName: "应急报警时间", field: "pmAlarmMins", minWidth: 100, flex: 1 },
              { headerName: "生产5S时间", field: "pm5sMins", minWidth: 100, flex: 1 },
              { headerName: "一级保养时间", field: "pmAmMins", minWidth: 100, flex: 1 }
            ]
          },
          { headerName: "设备保养时(分)__5200/6100/6200",
            children: [
              { headerName: "总设备保养时间", field: "ttlPmEqpMins", minWidth: 110, flex: 1 },
              { headerName: "定期PM时间", field: "schPmMins", minWidth: 100, flex: 1 },
              { headerName: "设备非定期时间", field: "unschEqpMins", minWidth: 110, flex: 1 },
              { headerName: "品质非定期时间", field: "unschQualityMins", minWidth: 110, flex: 1 }
            ] },
          { headerName: "改造改善时间", field: "pmEngMins", minWidth: 100, flex: 1 },
          { headerName: "实验借机时间", field: "pmCmMins", minWidth: 100, flex: 1 },
          { headerName: "设备变更时(分)__9100/9200",
            children: [
              { headerName: "总变更时间", field: "ttlPmChMins", minWidth: 90, flex: 1 },
              { headerName: "材料更换时间", field: "pmMaterialMins", minWidth: 100, flex: 1 },
              { headerName: "版型变更时间", field: "pmProductMins", minWidth: 100, flex: 1 }
            ] },
          { headerName: "异常PM时间", field: "pmErrorMins", minWidth: 100, flex: 1 }
        ]
      },
      { headerName: "设备OFF时间", field: "offMins", minWidth: 100, flex: 1, headerClass: 'custom-common' }
    ]
  }
]

export const fourthColumn = [
  {
    headerName: '时间稼动损失数(件)',
    headerClass: 'custom-rate',
    children: [
      { headerName: "总损失数", field: "ttlLossQty", minWidth: 80, flex: 1, headerClass: 'custom-rate' },
      { headerName: "待机_IDLE(件)",
        children: [
          { headerName: "总IDLE数", field: "ttlIdleQty", minWidth: 80, flex: 1, headerClass: 'custom-common' },
          { headerName: "待机数(件)_1100/1200",
            children: [
              { headerName: "待料数", field: "idleWaitQty", minWidth: 80, flex: 1 },
              { headerName: "堵料数", field: "idleBlockQty", minWidth: 80, flex: 1 }
            ]
          }
        ] },
      { headerName: "总停机数", field: "ttlStopQty", minWidth: 80, flex: 1, headerClass: 'custom-rate' },
      { headerName: "设备被动停机_DOWN(件)",
        children: [
          { headerName: "总DOWN机数", field: "ttlDownQty", minWidth: 100, flex: 1, headerClass: 'custom-common' },
          { headerName: "突发故障数(件)_2000/2001/2002/3000/4100/4200",
            children: [
              { headerName: "设备故障数", field: "eqpDownQty", minWidth: 90, flex: 1 },
              { headerName: "Interlock数", field: "interlockQty", minWidth: 100, flex: 1 },
              { headerName: "原材料故障数", field: "rawMaterialQty", minWidth: 100, flex: 1 },
              { headerName: "辅材料故障数", field: "subMaterialQty", minWidth: 100, flex: 1 }
            ]
          },
          { headerName: "设备故障数(件)_2000/2001/2002",
            children: [
              { headerName: "微故障数_60秒", field: "eqp60sQty", minWidth: 100, flex: 1 },
              { headerName: "小故障数_10分", field: "eqp10mQty", minWidth: 100, flex: 1 },
              { headerName: "中故障数_1时", field: "eqp1hQty", minWidth: 100, flex: 1 },
              { headerName: "大故障数_4时", field: "eqp4hQty", minWidth: 100, flex: 1 },
              { headerName: "特大故障数_4时+", field: "eqp4hsQty", minWidth: 120, flex: 1 }
            ] }
        ]
      },
      { headerName: "设备主动停机_PM(件)",
        children: [
          { headerName: "总PM数", field: "ttlPmQty", minWidth: 80, flex: 1, headerClass: 'custom-common' },
          { headerName: "生产保养数(件)_6112/6111/5100",
            children: [
              { headerName: "总生产保养数", field: "ttlPmManQty", minWidth: 100, flex: 1 },
              { headerName: "应急报警数", field: "pmAlarmQty", minWidth: 100, flex: 1 },
              { headerName: "生产5S数", field: "pm5sQty", minWidth: 90, flex: 1 },
              { headerName: "一级保养数", field: "pmAmQty", minWidth: 100, flex: 1 }
            ]
          },
          { headerName: "设备保养数(件)__5200/6100/6200",
            children: [
              { headerName: "总设备保养数", field: "ttlPmEqpQty", minWidth: 120, flex: 1 },
              { headerName: "定期PM数", field: "schPmQty", minWidth: 100, flex: 1 },
              { headerName: "设备非定期数", field: "unschEqpQty", minWidth: 120, flex: 1 },
              { headerName: "品质非定期数", field: "unschQualityQty", minWidth: 120, flex: 1 }
            ] },
          { headerName: "改造改善数", field: "pmEngQty", minWidth: 100, flex: 1 },
          { headerName: "实验借机数", field: "pmCmQty", minWidth: 100, flex: 1 },
          { headerName: "设备变更数(件)__9100/9200",
            children: [
              { headerName: "总变更数", field: "ttlPmChQty", minWidth: 80, flex: 1 },
              { headerName: "材料更换数", field: "pmMaterialQty", minWidth: 90, flex: 1 },
              { headerName: "版型变更数", field: "pmProductQty", minWidth: 90, flex: 1 }
            ] },
          { headerName: "异常PM数", field: "pmErrorQty", minWidth: 90, flex: 1 }
        ]
      },
      { headerName: "设备OFF数", field: "offQty", minWidth: 90, flex: 1, headerClass: 'custom-common' }
    ]
  }
]

export const othersColumn = [
  {
    headerName: "其他参考指标",
    children: [
      { headerName: "无计划现况",
        children: [
          { headerName: "无计划率(%)", field: "unschTimeRate", minWidth: 90, flex: 1 },
          { headerName: "无计划时间(分)", field: "unschTimeMins", minWidth: 120, flex: 1 },
          { headerName: "无计划数(件)", field: "unschTimeQty", minWidth: 110, flex: 1 }
        ]
      },
      { headerName: "无缺陷MTBI(分)", field: "mtbiStopMins", minWidth: 120, flex: 1 },
      { headerName: "无停止MTBI(分)", field: "mtbiDownMins", minWidth: 120, flex: 1 },
      { headerName: "MTBF(分)", field: "mtbfMins", minWidth: 80, flex: 1 },
      { headerName: "MTTR(分)", field: "mttrMins", minWidth: 80, flex: 1 },
      { headerName: "标准稼动时间(分)", field: "stdUtiTime", minWidth: 130, flex: 1 },
      { headerName: "实际稼动时间(分)", field: "actUtiTime", minWidth: 130, flex: 1 },
      { headerName: "计划稼动时间(分)", field: "schTime", minWidth: 130, flex: 1 },
      { headerName: "标准计划时间(分)", field: "stdSchTime", minWidth: 130, flex: 1 },
      { headerName: "设备台数", field: "eqpQty", minWidth: 80, flex: 1 }
    ]
  }
]

export const column = (params:any) => {
  if(params === 'D'){
    return [...firstColumn, ...secondColumn, ...thirdColumn, ...fourthColumn, ...othersColumn]
  } else if(params === 'W'){
    return [...firstColumnNullColor, ...secondColumn, ...thirdColumn, ...fourthColumn, ...othersColumn]
  } else if(params === 'M'){
    return [...firstColumnNullColorAny, ...secondColumn, ...thirdColumn, ...fourthColumn, ...othersColumn]
  }
}
